﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Untitled Page</title>

    <script src="../../js组件/jquery/jquery-latest-pack.js" type="text/javascript"></script></head>
<body>
 <p>This is just a test.</p>
 <p>So is this</p>
  <p>So is this</p>
   <p>So is this</p>
    <p>So is this</p>
     <p>So is this</p>
      <p>So is this</p>
      <p>So is this</p>
      <p>So is this</p>
     <p>So is this</p>
 <a href="#" id="test"  onclick="jq()">jQuery</a>
<script type="text/javascript">
function jq(){
$("p").each(
    function()
        {
            var obj  = this;
             $(obj).css("color","#ff00ff").css(
                {
                    left: "300px",
                    height:"30px",
                    background:"#ffeeff"
                });
        }
    )
}

</script>
</body>
</html>
